package com.xuanjia.smart_interview.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xuanjia.smart_interview.model.entity.Question;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.Date;
import java.util.List;

@Mapper
public interface QuestionMapper extends BaseMapper<Question> {
    // 可以添加自定义方法
    @Select("select * from question where updateTime >= #{minUpdateTime}")
    List<Question> listQuestionWithDelete(Date minUpdateTime);
}

